import { configureStore } from "@reduxjs/toolkit";
import rootReducer from "./reducers";

//配置redux中的中间件thunk
let rootStore = configureStore({
    reducer: rootReducer,
    middleware: getDefaultMiddleware => getDefaultMiddleware({
        thunk: {
            // extraArgument: api
        }
    })
})

export default rootStore